package com.woniuxy.controller;

import com.woniuxy.entity.ResponseEntity;
import com.woniuxy.service.AnswerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>Answer的controller<p>
 *
 * @author LSL
 * @date 2022/5/31 18:55
 */
@RestController
@RequestMapping("/answer")
public class AnswerController {
    @Autowired
    private AnswerService answerService;

    @RequestMapping("/findAnswerByTopicId")
    public List<ResponseEntity> findAnswerByTopicId(int id){
        return answerService.findAnswerByTopicId(id);
    }
}
